<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <h1>明天放假</h1>
        <span>去陵园玩儿啊</span>
    </div>
    <script>
        /**
         *  删除： delete、remove
         *  
         *  父节点.removeChild(子节点)
         */
        var oDiv = document.querySelector('div');
        var oH1 = document.querySelector('h1');
        var span = document.querySelector('span');
        // oDiv.removeChild(oH1);
        oDiv.removeChild(span);
    </script>
</body>
</html>